package com.situ.vivamarket.service;

import com.github.pagehelper.Page;
import com.situ.vivamarket.model.Brand;
import com.situ.vivamarket.model.Goods;
import com.situ.vivamarket.model.search.BrandSearchBean;
import com.situ.vivamarket.model.search.GoodsSearchBean;

import java.util.List;

public interface GoodsService {
    List<Goods> getAllGoods(GoodsSearchBean gsb, Page<?> p);

    int deleteByIds(Integer[] ids);

    boolean add(Goods goods);

    Goods findById(Integer id);

    boolean update(Goods goods);

//    根据类别id查找，用于前端进行比较,加入个数
    List<Goods> findByCatId(Integer catId,int limit);
}
